package com.one.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.one.dto.*;
import com.one.entity.GridMember;
import com.one.vo.GridMemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface GridMemberMapper extends BaseMapper<GridMember> {

	/************************ nepg工程 *********************/
	@Select("select * from grid_member where gm_code=#{gmCode}")
	public GridMember getGridMemberByCode(GridMemberLoginDTO gridMemberLoginDTO);

	int insert(GridMember gridMember);
	int deleteById(Integer gmId);
	int updateGridmember(GridMember gridMember);
	GridMember selectById(Integer gmId);
	List<GridMember> selectAll();
	List<GridMember> selectByCondition(GridMember condition);

	int insert(GridMemberDTO gridMemberDTO);

	List<GridMemberVO> listGridMembers(GridMemberPageRequestDTO request);

	int countGridMember(GridMemberPageRequestDTO request);



	/************************ nepg工程 *********************/
}
